Branchwell

PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Waveform / Wire Tangle / EVET - 3D Gravity Waves.milk

1MILKDROP_PRESET_VERSION=201
2PSVERSION=3
3PSVERSION_WARP=3
4PSVERSION_COMP=3
5[preset00]
6fRating=5.000000
7fGammaAdj=1.980
8fDecay=0.500
9fVideoEchoZoom=1.000
10fVideoEchoAlpha=0.500
11nVideoEchoOrientation=3
12nWaveMode=4
13bAdditiveWaves=0
14bWaveDots=0
15bWaveThick=1
16bModWaveAlphaByVolume=0
17bMaximizeWaveColor=0
18bTexWrap=1
19bDarkenCenter=0
20bRedBlueStereo=0
21bBrighten=0
22bDarken=1
23bSolarize=0
24bInvert=0
25fWaveAlpha=1.059
26fWaveScale=1.821
27fWaveSmoothing=0.000
28fWaveParam=0.000
29fModWaveAlphaStart=0.910
30fModWaveAlphaEnd=1.300
31fWarpAnimSpeed=1.459
32fWarpScale=2.007
33fZoomExponent=1.00000
34fShader=0.000
35zoom=0.99990
36rot=0.00000
37cx=0.500
38cy=0.500
39dx=0.00000
40dy=0.00000
41warp=0.01000
42sx=0.99990
43sy=1.00000
44wave_r=1.000
45wave_g=0.940
46wave_b=0.970
47wave_x=0.500
48wave_y=0.490
49ob_size=0.000
50ob_r=0.000
51ob_g=0.000
52ob_b=0.000
53ob_a=1.000
54ib_size=0.260
55ib_r=0.250
56ib_g=0.250
57ib_b=0.250
58ib_a=0.000
59nMotionVectorsX=64.000
60nMotionVectorsY=48.000
61mv_dx=0.000
62mv_dy=0.000
63mv_l=5.000
64mv_r=1.000
65mv_g=1.000
66mv_b=1.000
67mv_a=0.000
68b1n=0.000
69b2n=0.000
70b3n=0.000
71b1x=1.000
72b2x=1.000
73b3x=1.000
74b1ed=0.000
75wavecode_0_enabled=0
76wavecode_0_samples=512
77wavecode_0_sep=0
78wavecode_0_bSpectrum=0
79wavecode_0_bUseDots=0
80wavecode_0_bDrawThick=0
81wavecode_0_bAdditive=0
82wavecode_0_scaling=1.00000
83wavecode_0_smoothing=0.50000
84wavecode_0_r=1.000
85wavecode_0_g=1.000
86wavecode_0_b=1.000
87wavecode_0_a=1.000
88wavecode_1_enabled=0
89wavecode_1_samples=512
90wavecode_1_sep=0
91wavecode_1_bSpectrum=0
92wavecode_1_bUseDots=0
93wavecode_1_bDrawThick=0
94wavecode_1_bAdditive=0
95wavecode_1_scaling=1.00000
96wavecode_1_smoothing=0.50000
97wavecode_1_r=1.000
98wavecode_1_g=1.000
99wavecode_1_b=1.000
100wavecode_1_a=1.000
101wavecode_2_enabled=0
102wavecode_2_samples=512
103wavecode_2_sep=0
104wavecode_2_bSpectrum=0
105wavecode_2_bUseDots=0
106wavecode_2_bDrawThick=0
107wavecode_2_bAdditive=0
108wavecode_2_scaling=1.00000
109wavecode_2_smoothing=0.50000
110wavecode_2_r=1.000
111wavecode_2_g=1.000
112wavecode_2_b=1.000
113wavecode_2_a=1.000
114wavecode_3_enabled=0
115wavecode_3_samples=512
116wavecode_3_sep=0
117wavecode_3_bSpectrum=0
118wavecode_3_bUseDots=0
119wavecode_3_bDrawThick=0
120wavecode_3_bAdditive=0
121wavecode_3_scaling=1.00000
122wavecode_3_smoothing=0.50000
123wavecode_3_r=1.000
124wavecode_3_g=1.000
125wavecode_3_b=1.000
126wavecode_3_a=1.000
127shapecode_0_enabled=1
128shapecode_0_sides=4
129shapecode_0_additive=0
130shapecode_0_thickOutline=0
131shapecode_0_textured=1
132shapecode_0_num_inst=1
133shapecode_0_x=0.500
134shapecode_0_y=0.500
135shapecode_0_rad=2.12158
136shapecode_0_ang=0.00000
137shapecode_0_tex_ang=0.06283
138shapecode_0_tex_zoom=0.46943
139shapecode_0_r=1.000
140shapecode_0_g=1.000
141shapecode_0_b=1.000
142shapecode_0_a=1.000
143shapecode_0_r2=0.990
144shapecode_0_g2=1.000
145shapecode_0_b2=1.000
146shapecode_0_a2=0.000
147shapecode_0_border_r=1.000
148shapecode_0_border_g=1.000
149shapecode_0_border_b=1.000
150shapecode_0_border_a=0.100
151shapecode_1_enabled=0
152shapecode_1_sides=4
153shapecode_1_additive=0
154shapecode_1_thickOutline=0
155shapecode_1_textured=0
156shapecode_1_num_inst=1
157shapecode_1_x=0.500
158shapecode_1_y=0.500
159shapecode_1_rad=0.10000
160shapecode_1_ang=0.00000
161shapecode_1_tex_ang=0.00000
162shapecode_1_tex_zoom=1.00000
163shapecode_1_r=1.000
164shapecode_1_g=0.000
165shapecode_1_b=0.000
166shapecode_1_a=1.000
167shapecode_1_r2=0.000
168shapecode_1_g2=1.000
169shapecode_1_b2=0.000
170shapecode_1_a2=0.000
171shapecode_1_border_r=1.000
172shapecode_1_border_g=1.000
173shapecode_1_border_b=1.000
174shapecode_1_border_a=0.100
175shapecode_2_enabled=0
176shapecode_2_sides=4
177shapecode_2_additive=0
178shapecode_2_thickOutline=0
179shapecode_2_textured=0
180shapecode_2_num_inst=1
181shapecode_2_x=0.500
182shapecode_2_y=0.500
183shapecode_2_rad=0.10000
184shapecode_2_ang=0.00000
185shapecode_2_tex_ang=0.00000
186shapecode_2_tex_zoom=1.00000
187shapecode_2_r=1.000
188shapecode_2_g=0.000
189shapecode_2_b=0.000
190shapecode_2_a=1.000
191shapecode_2_r2=0.000
192shapecode_2_g2=1.000
193shapecode_2_b2=0.000
194shapecode_2_a2=0.000
195shapecode_2_border_r=1.000
196shapecode_2_border_g=1.000
197shapecode_2_border_b=1.000
198shapecode_2_border_a=0.100
199shapecode_3_enabled=0
200shapecode_3_sides=4
201shapecode_3_additive=0
202shapecode_3_thickOutline=0
203shapecode_3_textured=0
204shapecode_3_num_inst=1
205shapecode_3_x=0.500
206shapecode_3_y=0.500
207shapecode_3_rad=0.10000
208shapecode_3_ang=0.00000
209shapecode_3_tex_ang=0.00000
210shapecode_3_tex_zoom=1.00000
211shapecode_3_r=1.000
212shapecode_3_g=0.000
213shapecode_3_b=0.000
214shapecode_3_a=1.000
215shapecode_3_r2=0.000
216shapecode_3_g2=1.000
217shapecode_3_b2=0.000
218shapecode_3_a2=0.000
219shapecode_3_border_r=1.000
220shapecode_3_border_g=1.000
221shapecode_3_border_b=1.000
222shapecode_3_border_a=0.100
223per_frame_init_1=avg = 1;
224per_frame_init_2=index = int(rand(8));
225per_frame_init_3=index2 = int(rand(8));
226per_frame_init_4=ran = 1;
227per_frame_init_5=spb_=.3;
228per_frame_init_6=sdev = .1;
229per_frame_init_7=trel2 = rand (100)/100;
230per_frame_1=dec_med = pow (0.9, 30/fps); dec_slow = pow (0.98, 30/fps);
231per_frame_2=beat = bass+mid+treb;
232per_frame_3=avg = avg*dec_slow + beat*(1-dec_slow);
233per_frame_4=is_beat = above(beat, .2+avg+peak) * above (time, t0+.1);
234per_frame_5=t0 = is_beat*time + (1-is_beat)*t0;
235per_frame_6=peak = is_beat * beat + (1-is_beat)*peak*dec_med;
236per_frame_7=index = (index + is_beat) %16;
237per_frame_8=index2 = (index2 + is_beat*bnot(index))%12;
238per_frame_9=
239per_frame_10=spb = min(t0-t0a + .01,2); t0a = t0;
240per_frame_11=spb_ = if(is_beat,spb_ *.9 +.1*spb, spb_);
241per_frame_12=mindev = min(min(abs(spb-spb_),abs(spb*2-spb_)),abs(spb-spb_*2));
242per_frame_13=sdev = if(is_beat,sdev * .9 + .1*pow(mindev+.02,2),sdev);
243per_frame_14=
244per_frame_15=q20 = avg; q21 = beat;
245per_frame_16=q22 = peak+.1;
246per_frame_17=q24 = is_beat;
247per_frame_18=q27 = index; q28 = index2;
248per_frame_19=
249per_frame_20=trel = trel + 1/fps/spb_*4; itrel = int(trel);
250per_frame_21=q25 = above(itrel, itrel_);
251per_frame_22=q30 = itrel%2;
252per_frame_23=itrel_ = itrel;
253per_frame_24=q31 = trel/8-int(trel/8);
254per_frame_25=
255per_frame_26=ma = ma + peak/fps ;
256per_frame_27=mx=mx*dec_med+(1-dec_med)*cos(ma);
257per_frame_28=my=my*dec_med+(1-dec_med)*sin(ma+trel/16);
258per_frame_29=q15 = mx ; q16 = my ; q17 = ma;
259per_frame_30=
260per_frame_31=//first par: off; second: on
261per_frame_32=sw1 = if(sw1,bnot(q24*bnot(int(rand(10)))),q24*bnot(int(rand(20))));
262per_frame_33=sw2 = if(sw2,bnot(q24*bnot(int(rand(40)))),q24*bnot(int(rand(80))));
263per_frame_34=sw3 = if(sw3,bnot(q24*bnot(int(rand(10)))),q24*bnot(int(rand(100+10000*sdev))));
264per_frame_35=
265per_frame_36=//********* variation parameters warp shader
266per_frame_37=q6 = sin(time/15)*sin(time/27)*.1; //zz weighting
267per_frame_38=q10 = sin(time/8); //ring
268per_frame_39=q10 = q10*q10*.1;
269per_frame_40=q11 = 1.5+sin(time/7.8); //zoom uv2
270per_frame_41=q12 = if(below(sdev,.02)*bnot(q8),q25,1); //go
271per_frame_42=q13 = .5+sin(time/17); //pow noise
272per_frame_43=q19 = sin(time/5.3)*.4; //sunpos
273per_frame_44=
274per_frame_45=//********* variation parameters comp shader
275per_frame_46=q3 = sw1;//mirror
276per_frame_47=q4 = .02/sdev; //unused ###
277per_frame_48=q5 = max(min(4*sin(trel/64)-3,1),0)*.4; //water
278per_frame_49=q7 = below(sdev,.004)*(index2%2); //flash
279per_frame_50=q2 = abs(q19)*sqrt(q15*q15+q16*q16); //avoid black - frame eq2
280per_frame_51=
281per_frame_52=trel2 = trel2+.003*q22*q22/fps;
282per_frame_53=tmp = sin(trel2);
283per_frame_54=tmp = 20*tmp-19;
284per_frame_55=q8 = tmp*above(tmp,0)*(4/max(q22-4,0.2)+4); // dyn zoom
285per_frame_56=q26 = above(q22,16)*(q22-16)*2; //# ok???
286per_frame_57=
287per_frame_58=tmp = index2/6;
288per_frame_59=q14 = abs((tmp-int(tmp))-.5)*6+1; //ang multi ####
289per_frame_60=
290per_frame_61=tmp =sin(trel/4*3.14); //sym rot
291per_frame_62=jmp = jmp + above(tmp,.5)*tmp/fps*8*sw2;
292per_frame_63=q9 = jmp*equal(q14,1)*below(sdev,0.04)+time*above(sin(q17/23),.9);
293per_frame_64=q18 = tmp*tmp/2 * bnot(q8) * sw3; //waber
294per_frame_65=
295per_frame_66=monitor = avg;
296per_frame_67=rot = .003;
297per_frame_68=warp = .1;
298per_frame_69=zoom = 1+(avg-log(sdev))/200+min(q26,1);
299per_frame_70=//dx = tmp*.01*above(abs(tmp),.95);
300warp_1=`static const float quality = 4, depth = 3.5;
301warp_2=`float3 rsl, rsl2, rss, ret1,screen3,cloud;
302warp_3=`float2 uv0, uv1, uv2;
303warp_4=`float tmp, lprof,lprof2,sprof,sprof2, n, stone,stone_lit,sun,sky;
304warp_5=`float hormask, lavmask,ilavmask,cldmask,ncloud;
305warp_6=`static float lav_gnd = 0,hordist = 8, tele = 1;
306warp_7=`static float2 mov = float2 (q5,q6);
307warp_8=`
308warp_9=`float hq_n (float3 uvi) {return lum(tex2D (sampler_noise_hq ,uvi.xy));}
309warp_10=`float noise2 (float3 uvi) {return tex2D (sampler_noise_lq,uvi*8);}
310warp_11=`
311warp_12=`float noise4 (float2 uvi) { float n1,n2,n3,n4,zv; zv = 0.006*time;
312warp_13=` n1 = lum(tex2D(sampler_noise_hq, (uvi)));
313warp_14=` n2 = lum(tex2D(sampler_noise_hq, (uvi*2+zv)));
314warp_15=` n3 = lum(tex2D(sampler_noise_hq, (uvi*4+zv)));
315warp_16=` n4 = lum(tex2D(sampler_noise_hq, (uvi*8+4*zv)));
316warp_17=` return n1 + n2/2 + n3/4 + n4/8;}
317warp_18=`
318warp_19=`float noise3 (float3 uvi) {float arg;
319warp_20=`return clamp(tex2D (sampler_noise_hq,uvi.xy/16)-.5,-.25,.25)*2
320warp_21=` +(tex2D (sampler_noise_hq,uvi.xy/8)-.5)/4
321warp_22=` +(tex2D (sampler_noise_hq,(uvi.x-sin(uvi.y*2))/2))/12;}
322warp_23=`
323warp_24=`float3 rs_lav (float2 uvi, float berg) { float z; float2 rs;
324warp_25=` z = 8/(uvi.y)*(q8-4*berg); z = clamp(z,-8,80*hordist); //#final check !
325warp_26=` rs.x = uvi.x*z ; rs.y = z;
326warp_27=` rs = mul(rs,float2x2(q3,q4,-q4,q3));
327warp_28=` return float3(rs/64 + mov,z); }
328warp_29=`
329warp_30=`float3 rs_sky (float2 uvi, float berg) { float z; float2 rs;
330warp_31=` z = 8/(uvi.y - berg-.5); z = clamp(z,-32,1);
331warp_32=` rs.x = (uvi.x)*z ; rs.y = z;
332warp_33=` rs = mul(rs,float2x2(q3,q4,-q4,q3));
333warp_34=` return float3(-rs/64+mov/-128,z); }
334warp_35=`
335warp_36=`shader_body {
336warp_37=`uv1 = uv*aspect.xy-float2(.5,q7);
337warp_38=`uv1 = mul(uv1,float2x2(q1,q2,-q2,q1));
338warp_39=`screen3 = float3 (float2(uv.x*2-1,uv.y-.5)*aspect.yx,1);
339warp_40=`
340warp_41=`//CLOUDS
341warp_42=`uv2 = rs_sky(uv1,0);tmp = 0;
342warp_43=`for (int n = 1; n <= 3; n++) {
343warp_44=` uv2 = rs_sky(uv1,tmp*.03);
344warp_45=` tmp = saturate(lum(tex2D (sampler_noise_hq,uv2 +.03*noise4(uv2*2))-.5));}
345warp_46=`tmp = saturate(pow(tmp,1.4) * sign(tmp));
346warp_47=`cloud = tmp;
347warp_48=`ncloud = saturate(1-tmp);
348warp_49=`
349warp_50=`//DUNES
350warp_51=`for (n=1; n <= quality; n++) {
351warp_52=` rsl = rs_lav(tele*uv1,lav_gnd); //#spiele an uv-Vorfakt - zoom, auch bei sky !
352warp_53=` lprof = noise3(rsl);
353warp_54=` lav_gnd -= lprof/quality*depth/sqrt(rsl.z); }
354warp_55=`rsl = rs_lav(tele*uv1,lav_gnd);
355warp_56=`stone = noise2(rsl);
356warp_57=`
357warp_58=`float3 rsl3 = rsl + float3(-.1,.0,0);
358warp_59=`lprof2 = noise3(rsl3);
359warp_60=`stone_lit = .3+4*saturate(.2+lprof-lprof2);
360warp_61=`
361warp_62=`//------------------- masking -----------------------------------------
362warp_63=`lavmask = saturate (4*hordist-rsl.z/18) * (rsl.z >= 0); // # !
363warp_64=`ilavmask = saturate(1-lavmask);
364warp_65=`
365warp_66=`//---------------- skylight first-----------------
366warp_67=`ret1 = ncloud*uv.y*float3 (.3,.4,1);
367warp_68=`ret1 += cloud*2;
368warp_69=`ret1 *= ilavmask;
369warp_70=`
370warp_71=`//----------------lava / stone -----------------
371warp_72=`ret1 += stone *stone_lit*lavmask * float3(1,.4,.0);
372warp_73=`
373warp_74=`
374warp_75=`ret = 1-exp(-ret1*2+.1+.1*sin(time/7));
375warp_76=`
376warp_77=`float4 noise9 = tex3D(sampler_noisevol_hq,
377warp_78=` ((float3(uv1.y-uv2.x,uv2.x+uv1.x,uv.x*uv.y)*q27
378warp_79=` )*texsize.xyy*texsize_noisevol_hq.zww
379warp_80=` ).xyz*
380warp_81=` float3(1,1,0)*0.05 +
381warp_82=` time*float3(0,0,1)*q29
382warp_83=` );
383warp_84=`if(ret.x> q21*roam_cos.y && ret.x<= q24*roam_sin.x)ret.y -= (noise9).x*.5;
384warp_85=`if(ret.y> q22*roam_sin.x && ret.y<= q25*roam_cos.x)ret.z -= (noise9).y*.5;
385warp_86=`if(ret.z> q23*roam_cos.x && ret.z<= q26*roam_sin.y)ret.x -= (noise9).z*.5;
386warp_87=`}
387warp_88=`
388warp_89=`written by martin
389warp_90=`END
390comp_1=`float3 ret1, neu;
391comp_2=`float2 rs,rs2,uv1;
392comp_3=`shader_body
393comp_4=`{
394comp_5=`float2 uv2;
395comp_6=`float ang2, c, s;
396comp_7=`uv -= 0.5;
397comp_8=`uv *= aspect.xy;
398comp_9=`
399comp_10=`float dist = 1;
400comp_11=`float inten = 1;
401comp_12=`float mask = 0;
402comp_13=`ret1 = 0;
403comp_14=`int anz = 3;
404comp_15=`float n = 0;
405comp_16=`while (n <= anz) {
406comp_17=` ang2 = 6.28*n/anz;
407comp_18=` c = cos(ang2);
408comp_19=` s = sin(ang2);
409comp_20=` uv2.x = uv.x*c - uv.y*s;
410comp_21=` uv2.y = uv.x*s + uv.y*c;
411comp_22=`
412comp_23=` dist = 1-frac(1.0/anz*n+time/2); //evtl sqrt !
413comp_24=`
414comp_25=` inten = sqrt(dist)*(1-dist)*8;
415comp_26=`float2 uv3 = frac(3*uv2*dist + 0.5+float2(q1,q2)*.05);
416comp_27=` neu = 1*GetPixel(uv3) -GetBlur1(uv3+.003);
417comp_28=` ret1 = max(ret1,neu*inten);
418comp_29=`n++;
419comp_30=`}
420comp_31=`
421comp_32=`rs2 = .5*cos(uv*13) - ret1;;
422comp_33=`float dots = saturate(.05/length(rs2)) ;
423comp_34=`
424comp_35=`
425comp_36=`ret = 2*ret1.gbr + 21*dots*(.1+3*ret1) ;
426comp_37=`ret = ret1*4;
427comp_38=`}